<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        h3.numbered{
            counter-reset: mynum;
        }

        p.numbered:before{
            content: counter(mynum) ": ";
            counter-increment: mynum;
            font-weight: bold;
        }
        h3{
            border-top: 4px solid #7c7;
            background-color: #efe;
            color:#050;
            clear:left;
        }
        ul {
            border: 12px solid rgb(91,142,179);
            padding-left: 3em;
        }
        ul,#numbered{
            border:1em solid #69b;
            padding-right: 1em;
            float:left;
        }

    </style>
</head>
<body>
    <h3 id="oceans">The oceans</h3>
    <ul>
      <li>Arctic</li>
      <li>Atlantic</li>
      <li>Pacific</li>
      <li>Indian</li>
      <li>Southern</li>
    </ul>

    <h3 class="numbered">Numbered paragraphs</h3>
    <div id="numbered">
        <p class="numbered">Lorem ipsum</p>
        <p class="numbered">Dolor sit</p>
        <p class="numbered">Amet consectetuer</p>
        <p class="numbered">Magna aliquam</p>
        <p class="numbered">Autem veleum</p>
    </div>
</body>
</html>